<template>
  <div id="homeBox">
    <div class="menuBox">
      <span><router-link to="/itema">ItemA</router-link> |</span>
      <span><router-link to="/itemb">ItemB</router-link> |</span>
      <span><router-link to="/itemc">ItemC</router-link></span>
    </div>
    <div class="mainBox">
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {};
  },
  mounted() {
    this.$router.push({
      path: "/itema"
    });
  },
  methods: {},
  components: {}
};
</script>
<style lang="less" scoped>
#homeBox{
  width: 100%;
  height: 100%;
}
.menuBox{
  width:300px;
  height: 60px;
  line-height: 60px; 
  margin: auto
}
.menuBox>span{
  width: calc(100% / 3);
  height: 60px;
  line-height: 60px;
  text-align: center;
}
.mainBox{
  width: 960px;
  height: 100%;
  margin: auto;
  border: 1px solid #eee;
}
</style>
